// 订阅图像节点头文件

#pragma once

#include "rclcpp/rclcpp.hpp"
#include "image_transport/image_transport.hpp"
#include "cv_bridge/cv_bridge.h"
#include <opencv2/opencv.hpp>

class ImgSubscriber : public rclcpp::Node
{
public:
    ImgSubscriber();

private:
    void sub_image(const sensor_msgs::msg::Image::ConstSharedPtr& msg);

    image_transport::Subscriber sub_; //订阅者
};